{{define "content"}}

<p></p>

<button class="btn btn-primary" data-toggle="modal" data-target="#myModal"> Add Menu </button>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		<form action="/menu?s={{.site}}" method="post" class="form-horizontal" id="frm-create" role="form">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
					<h4 class="modal-title">Add menu </h4>
				</div>
				<div class="modal-body">

					<div class="form-group">
						<label for="title" class="col-xs-2 col-sm-2 col-md-2 control-label">title:</label>
						<div class="col-xs-12 col-sm-6 col-md-8">
							<input type="text" name="title" id="title" class="form-control">
						</div>
					</div>

					<div class="form-group">
						<label for="price" class="col-xs-2 col-sm-2 col-md-2 control-label">price:</label>
						<div class="col-xs-12 col-sm-6 col-md-8">
							<input type="text" name="price" id="price" class="form-control">
							<span class="help-inline">xxxx</span>
						</div>
					</div>
				</div>
				<div class="modal-footer">
					<input type="hidden" name="site" value="{{.site}}">
					<input type="submit" value="submit" class="btn btn-success">
					<input type="reset" value="reset" class="btn btn-danger">

					<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
				</div>
			</div><!-- /.modal-content -->
		</form>
	</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

  <div class="bs-docs-section">
    <div class="page-header">
      <h1 id="overview"> {{.sitename}} 菜单 </h1>
    </div>
    <div class="row">
	<div class="col-xs-12 col-sm-8 col-md-7 col-lg-5">
		<table class="table table-striped table-hover select-table">
			<thead>
				<tr>
					<th>ID</th>
					<th>Title</th>
					<th>Price</th>
				</tr>
				<tbody>
					{{range .ms}}
					<tr>
						<td>{{.Id}} </td>
						<td>{{.Title}} </td>
						<td>{{.Price}} </td>
					</tr>
					{{end}}
				</tbody>
			</thead>
		</table>
    </div>
    </div>
</div>




{{end}}

